package com.leviassaf.speaktranslation;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.speech.tts.UtteranceProgressListener;

@SuppressLint("NewApi")
public class MyUtteranceProgressListener extends UtteranceProgressListener {
	
	Communicator communicator;
	Activity mainActivity;
	
	public MyUtteranceProgressListener(Activity activity) {
		mainActivity = activity;
		communicator = (Communicator) activity;
	}

	@Override
	public void onDone(String utteranceId) {
		communicator.sendMessage("Done");
	}

	@Override
	public void onError(String utteranceId) {
		
	}

	@Override
	public void onStart(String utteranceId) {
		
	}

}
